<?php
include_once 'kahlua.ini';
include 'classes/utils/smarty_connect.php';
include_once 'classes/handlers/videosHandler.php';
include_once 'classes/db.php';
include_once 'classes/classNotas.php';
include_once 'classes/classUtils.php';
include_once('classes/classAlbum.php');
include_once('classes/classFotos.php');

$arrVideos = videosHandler::getTop3SexyNotas();

$myNota = new Notas();
$arrColumna = $myNota->getColumnaRodrigo();

$myAlbum = new Album();
$myFotos = new Fotos();
$albumName = $myAlbum->getAlbumName($_GET['album']);
$arrThumbnails = $myAlbum->getFotosFromAlbum($_GET['album']);
$arrFoto = $myFotos->getFoto($_GET['foto']);

//var_dump($arrThumbnails); exit();

$smarty = new smarty_connect;

$smarty->assign("CSS", array("newmasmedio.css", "notas.css", "galeriasNew.css"));
$smarty->assign("JS", array("jquery-1.3.2.js","masmedio.js", "galerias.js"));
$smarty->assign("title", "MasMedio.com | Galeria - ".$albumName["titulo"]);
$smarty->assign("arrVideos", $arrVideos);
$smarty->assign("arrColumna", $arrColumna);
$smarty->assign("albumName", $albumName);
$smarty->assign("arrThumbnails", $arrThumbnails);
$smarty->assign("arrFoto", $arrFoto);
$smarty->assign("albumID", $_GET['album']);
$smarty->display('../templates/verFoto.tpl');